package com.lingdian;

import javafx.scene.chart.Chart;

import java.io.Console;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

public class InputTest {
    public static void main(String[] args) throws IOException {

//        Scanner scanner = new Scanner(System.in);
//        System.out.println("Hello world!");
//        System.out.println("What id your name ?");
//        String name = scanner.nextLine();
//        System.out.println("How lod are you ?");
//        int age = scanner.nextInt();
//        System.out.println("Hello, " + name + ". Next year ,you'll be " + (age + 1));

//        Console console = System.console();
//        String username = console.readLine("User name:");
//        char[] password = console.readPassword("Password: ");
//        System.out.println(username + "==" + password);
        Path source = Paths.get(System.getProperty("user.dir")+"/新建 文本文档.txt");
        System.err.println(source);
        Scanner scanner = new Scanner(source, "UTF-8");
        System.err.println(scanner.nextLine());
    }
}